package cn.zhz.dao.user;

import cn.zhz.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    public User getLoginUser(@Param("userCode") String userCode) throws  Exception;

    public int getUserCount(@Param("userName") String userName, @Param("userRole") int userRole);

    public List<User> getUserList(@Param("userName") String userName,
                                  @Param("userRole") int userRole,
                                  @Param("currentPageNo") int currentPageNo,
                                  @Param("pageSize") int pageSize);

    public int adduser(User user);

    public User getUserById(@Param("id") String id);

    public int modify(User user);
}
